<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

  <form action="${pageContext.request.contextPath}/list">
    搜索内容<input type="text" name="value" placeholder="请输入搜索内容"/>
      <input type="submit" value="搜索"/>
  </form>

	<table>
		<thead>
			<tr>
				<th>序号</th>
				<th>商品名称</th>
				<th>分类名称</th>
			</tr>
		</thead>

		<tbody>
			<c:forEach var="entity" items="${info.list}">
				<tr>
					<td>${entity.id}</td>
					<td>${entity.name}</td>
					<td>${entity.categoryName}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>